package sample.ws.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.LocalDateTime;

/**
 * ServiceIPRuleEntity..
 *
 * @author Lizhong
 * @date 2019/7/15
 */
@Entity
@Table(name = " service_ip_rule")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ServiceIPRuleEntity {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    // 保存所有ip规则
    private String ip;
    //
    private Long serviceId;

    private boolean enable=true;

    private LocalDateTime createTime;
}
